package com.hzj.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzj.pojo.HospitalInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hzj
 * @since 2021-04-26
 */
@Repository
public interface HospitalInfoMapper extends BaseMapper<HospitalInfo> {

    HospitalInfo checkByHoscode(String hoscode);

    IPage getListPage(Page page1, @Param("provinceCode") Integer provinceCode,@Param("cityCode") Integer cityCode,@Param("hosname") String hosname);

    HospitalInfo showHospDetail(@Param("id") int id);

    IPage getPageListByHostype(Page page1,@Param("hostype") Integer hostype,@Param("districtCode") Integer districtCode);
}
